<?php
//版权
header("Content-Type:text/html;charset=utf-8");
$config = "select * from $TBL_CONFIG where id=1";
$res_config = mysql_query($config);	
$row_config = mysql_fetch_array($res_config);
$site_name = $row_config[site_name];
$site_keywords = $row_config[site_keywords];
$site_name = $row_config[site_name];
$site_desc = $row_config[site_desc];
$site_keywords = $row_config[site_keywords];

$smarty->assign("site_name",$site_name);
$smarty->assign("site_keywords",$site_keywords);
$smarty->assign("site_desc",$site_desc);

//群活动
$seld = "select * from $TBL_DEAL order by id asc";
$resd = mysql_query($seld);
while($row = mysql_fetch_array($resd))
{
	if($row[id]==1)
	{
		$imgsection = $row[img];//活动
		$imgshqb = $row[hou_id1];//活动
	}
	if($row[id]==3)
	{
		$imgzls = $row[img];//资料室
	}
	if($row[id]==4)
	{
		$text = $row[text];//跑马灯
	}
	if($row[id]==5)
	{
		$imgzz = $row[img];
		$admintext = $row[text];
	}	
	if($row[id]==6)
	{
		$imgtop = $row[img];
		$imgtopText = $row[text];
	}
	if($row[id]==7)
	{
		$imgadvs = $row[img];		
	}
}
$smarty->assign("imgzls",$imgzls);
$smarty->assign("imgzz",$imgzz);
$smarty->assign("admintext",$admintext);
$smarty->assign("imgsection",$imgsection);
$smarty->assign("imgshqb",$imgshqb);
$smarty->assign("text",$text);
$smarty->assign("mem_id",$_SESSION['mem_id']);
$smarty->assign("type",$_SESSION['type']);
$smarty->assign("Cookie",$_COOKIE['Cookie']);
$smarty->assign("imgtop",$imgtop);
$smarty->assign("imgadvs",$imgadvs);
$smarty->assign("imgtopText",$imgtopText);
?>